package com.bed.lovewithpatientbed.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * bed_put
 * @author 
 */
public class BedPut implements Serializable {
    private Integer bedPutId;

    private Integer bedId;

    private Integer hospitalId;

    private Integer deptId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date putDate;

    private Integer bedStatusId;

    private Integer softdel;

    private Bed bed;

    private Hospital hospital;

    private Dept dept;

    private BedStatus bedStatus;

    private static final long serialVersionUID = 1L;

    public Integer getBedPutId() {
        return bedPutId;
    }

    public void setBedPutId(Integer bedPutId) {
        this.bedPutId = bedPutId;
    }

    public Integer getBedId() {
        return bedId;
    }

    public void setBedId(Integer bedId) {
        this.bedId = bedId;
    }

    public Integer getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(Integer hospitalId) {
        this.hospitalId = hospitalId;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Date getPutDate() {
        return putDate;
    }

    public void setPutDate(Date putDate) {
        this.putDate = putDate;
    }

    public Integer getBedStatusId() {
        return bedStatusId;
    }

    public void setBedStatusId(Integer bedStatusId) {
        this.bedStatusId = bedStatusId;
    }

    public Integer getSoftdel() {
        return softdel;
    }

    public void setSoftdel(Integer softdel) {
        this.softdel = softdel;
    }

    public Bed getBed() {
        return bed;
    }

    public void setBed(Bed bed) {
        this.bed = bed;
    }

    public Hospital getHospital() {
        return hospital;
    }

    public void setHospital(Hospital hospital) {
        this.hospital = hospital;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public BedStatus getBedStatus() {
        return bedStatus;
    }

    public void setBedStatus(BedStatus bedStatus) {
        this.bedStatus = bedStatus;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BedPut other = (BedPut) that;
        return (this.getBedPutId() == null ? other.getBedPutId() == null : this.getBedPutId().equals(other.getBedPutId()))
            && (this.getBedId() == null ? other.getBedId() == null : this.getBedId().equals(other.getBedId()))
            && (this.getHospitalId() == null ? other.getHospitalId() == null : this.getHospitalId().equals(other.getHospitalId()))
            && (this.getDeptId() == null ? other.getDeptId() == null : this.getDeptId().equals(other.getDeptId()))
            && (this.getPutDate() == null ? other.getPutDate() == null : this.getPutDate().equals(other.getPutDate()))
            && (this.getBedStatusId() == null ? other.getBedStatusId() == null : this.getBedStatusId().equals(other.getBedStatusId()))
            && (this.getSoftdel() == null ? other.getSoftdel() == null : this.getSoftdel().equals(other.getSoftdel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBedPutId() == null) ? 0 : getBedPutId().hashCode());
        result = prime * result + ((getBedId() == null) ? 0 : getBedId().hashCode());
        result = prime * result + ((getHospitalId() == null) ? 0 : getHospitalId().hashCode());
        result = prime * result + ((getDeptId() == null) ? 0 : getDeptId().hashCode());
        result = prime * result + ((getPutDate() == null) ? 0 : getPutDate().hashCode());
        result = prime * result + ((getBedStatusId() == null) ? 0 : getBedStatusId().hashCode());
        result = prime * result + ((getSoftdel() == null) ? 0 : getSoftdel().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bedPutId=").append(bedPutId);
        sb.append(", bedId=").append(bedId);
        sb.append(", hospitalId=").append(hospitalId);
        sb.append(", deptId=").append(deptId);
        sb.append(", putDate=").append(putDate);
        sb.append(", bedStatusId=").append(bedStatusId);
        sb.append(", softdel=").append(softdel);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}